﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
using XYAC.Framework.MonitorTireMaterialOnline.Entities;

namespace XYAC.Framework.MonitorTireMaterialOnline.SQLServerDB
{
    [Table("YB_TECHNOLOGY_LINE")]
    public class YB_Technology_Line : EntityBase<long>
    {
        [Key]
        public long LJ_ID { get; set; } // 自增，无需写入
        public long? RECIPE_ID { get; set; } // 头表ID（CX_TECHNOLOGY_HEADER）
        public string? ATTRIBUTE_CODE { get; set; } // VARCHAR2(80) 参数CODE
        public string? ATTRIBUTE_NAME { get; set; } // VARCHAR2(80) 参数NAME
        public string? ATTRIBUTE_VALUE { get; set; } // VARCHAR2(80) 值//需要需要加长
        public string? LOWER_TOL { get; set; } // VARCHAR2(80) 下限(最小值)
        public string? UPPER_TOL { get; set; } // VARCHAR2(80) 上限(最大值)
        public DateTime? CREATION_DATE { get; set; } // DATE
        public string? RECEIVE_FLAG { get; set; } // VARCHAR2(20)
        public DateTime? RECEIVE_DATE { get; set; } // DATE


        [NotMapped]
        [JsonIgnore]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Browsable(false)]
        [Obsolete("This property should not be used.", true)]
        public override bool? IsDeleted { get; set; }

        [NotMapped]
        [JsonIgnore]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [Browsable(false)]
        [Obsolete("This property should not be used.", true)]
        public override long ID { get; set; }

    }
}
